package com.starinside.wp.foundation.query;

import com.starinside.wp.foundation.query.base.PagerQuery;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * *******************************
 * Created by Tim.
 * form com.matt
 * on 2017/9/19
 * *******************************
 */
@Data
@ToString(callSuper=true)
@EqualsAndHashCode(callSuper=true)
public class CoursePlanQuery extends PagerQuery {
    private String teacherId;
    private String beginDate;
    private String endDate;
    private String areaId;
    private Integer prepareStatus;
    private Integer courseStatus;
    public static CoursePlanQuery newCoursePlanQuery(){
        return new CoursePlanQuery();
    }

    public CoursePlanQuery begin(String beginDate){
        this.beginDate = beginDate;
        return this;
    }
    public CoursePlanQuery end(String endDate){
        this.endDate = endDate;
        return this;
    }
    public CoursePlanQuery areaAt(String areaId){
        this.areaId = areaId;
        return this;
    }

    public CoursePlanQuery pageSize(Integer pageSize){
        super.setPageSize(pageSize);
        return this;
    }
    public CoursePlanQuery build(){
        return this;
    }
}
